package com.zygh.policeasset.pojo;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/StatusEnum.class */
public enum StatusEnum {
    APPROVALING("审核中", 1),
    ADOPT("已通过", 2),
    REFUSE("已拒绝", 3),
    NOSUMBITTED("未提交", 0);

    private String name;
    private int index;

    StatusEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }

    public static String getName(int index) {
        StatusEnum[] values = values();
        for (StatusEnum c : values) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return this.index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}